home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / stringex / ex17.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  405 b   |  19 lines

  1. Program Example17;
  2.  
  3. Uses strings;
  4.  
  5. { Program to demonstrate the StrDispose function. }
  6.  
  7. Const P1 : PChar = 'This is a PChar string';
  8.  
  9. var P2 : PChar;
  10.  
  11. begin
  12.   Writeln ('Before StnNew : Memory available : ',MemAvail);
  13.   P2:=StrNew (P1);
  14.   Writeln ('After StrNew : Memory available : ',MemAvail);
  15.   Writeln ('P2 : ',P2);
  16.   StrDispose(P2);
  17.   Writeln ('After StrDispose : Memory available : ',MemAvail);
  18. end.
  19.